package org.jacquesh.mall.panel.web;
import io.swagger.annotations.Api;
import org.jacquesh.mall.common.model.JsResult;
import org.jacquesh.mall.panel.model.JacqueshMallPanels;
import org.jacquesh.mall.service.PanelService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
 * @author Jacquesh
 * @version 1.0
 * @date 2020/9/25 23:03
 */

@Api(value = "分类接口", tags = {"首页分类信息展示的相关接口"})
@RestController
@RequestMapping("panel")
public class PanelContorller {
    @Resource
    PanelService panelService;
    @GetMapping("/list")
    JsResult<List<JacqueshMallPanels>> listAll(){
       return  panelService.listAll();
   }
}
